package com.maoslv.mapper;

import com.maoslv.pojo.Pagination;
import com.maoslv.pojo.Staff;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface StaffMapper {
    List<Staff> getStaffList(Pagination pagination);

    Integer getTotal(Pagination pagination);

    List<String> getDepartmentList();

    Staff getStaffInfo(Integer id);

    int updateStaff(Staff staff);

    int addStaff(Staff staff);
}
